<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * UserInventory
 *
 * @ORM\Table(name="user_inventory")
 * @ORM\Entity
 */
class UserInventory
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var string
     *
     * @ORM\Column(name="uuid", type="string", length=36, nullable=true)
     */
    protected $uuid;

    /**
     * @var integer
     *
     * @ORM\Column(name="item_damage", type="integer", nullable=false)
     */
    protected $itemDamage;

    /**
     * @var boolean
     *
     * @ORM\Column(name="equipped", type="boolean", nullable=false)
     */
    protected $equipped;

    /**
     * @var float
     *
     * @ORM\Column(name="asking_price", type="float", nullable=true)
     */
    protected $askingPrice;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Safe
     *
     * @ORM\ManyToOne(targetEntity="Entity\Safe")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="safe_id", referencedColumnName="id")
     * })
     */
    protected $safe;

    /**
     * @var \Entity\Country
     *
     * @ORM\ManyToOne(targetEntity="Entity\Country")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
     * })
     */
    protected $country;

    /**
     * @var \Entity\InventoryItem
     *
     * @ORM\ManyToOne(targetEntity="Entity\InventoryItem")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="inventory_item_id", referencedColumnName="id")
     * })
     */
    protected $inventoryItem;

    /**
     * @var \Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     * })
     */
    protected $user;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set uuid
     *
     * @param string $uuid
     * @return UserInventory
     */
    public function setUuid($uuid)
    {
        $this->uuid = $uuid;
    
        return $this;
    }

    /**
     * Get uuid
     *
     * @return string 
     */
    public function getUuid()
    {
        return $this->uuid;
    }

    /**
     * Set itemDamage
     *
     * @param integer $itemDamage
     * @return UserInventory
     */
    public function setItemDamage($itemDamage)
    {
        $this->itemDamage = $itemDamage;
    
        return $this;
    }

    /**
     * Get itemDamage
     *
     * @return integer 
     */
    public function getItemDamage()
    {
        return $this->itemDamage;
    }

    /**
     * Set equipped
     *
     * @param boolean $equipped
     * @return UserInventory
     */
    public function setEquipped($equipped)
    {
        $this->equipped = $equipped;
    
        return $this;
    }

    /**
     * Get equipped
     *
     * @return boolean 
     */
    public function getEquipped()
    {
        return $this->equipped;
    }

    /**
     * Set askingPrice
     *
     * @param float $askingPrice
     * @return UserInventory
     */
    public function setAskingPrice($askingPrice)
    {
        $this->askingPrice = $askingPrice;
    
        return $this;
    }

    /**
     * Get askingPrice
     *
     * @return float 
     */
    public function getAskingPrice()
    {
        return $this->askingPrice;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return UserInventory
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set safe
     *
     * @param \Entity\Safe $safe
     * @return UserInventory
     */
    public function setSafe(\Entity\Safe $safe = null)
    {
        $this->safe = $safe;
    
        return $this;
    }

    /**
     * Get safe
     *
     * @return \Entity\Safe 
     */
    public function getSafe()
    {
        return $this->safe;
    }

    /**
     * Set country
     *
     * @param \Entity\Country $country
     * @return UserInventory
     */
    public function setCountry(\Entity\Country $country = null)
    {
        $this->country = $country;
    
        return $this;
    }

    /**
     * Get country
     *
     * @return \Entity\Country 
     */
    public function getCountry()
    {
        return $this->country;
    }

    /**
     * Set inventoryItem
     *
     * @param \Entity\InventoryItem $inventoryItem
     * @return UserInventory
     */
    public function setInventoryItem(\Entity\InventoryItem $inventoryItem = null)
    {
        $this->inventoryItem = $inventoryItem;
    
        return $this;
    }

    /**
     * Get inventoryItem
     *
     * @return \Entity\InventoryItem 
     */
    public function getInventoryItem()
    {
        return $this->inventoryItem;
    }

    /**
     * Set user
     *
     * @param \Entity\User $user
     * @return UserInventory
     */
    public function setUser(\Entity\User $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}
